package homework;

public class homework1 {
    public static void main(String[] agrs){
        double sum=0;
        int day=0;
        while(sum<100){
            if(day%5==0){
                sum=sum-6;
                day++;
            }
           else{
                sum=sum+2.5;
                day++;
            }
        }
        System.out.println("第"+day+"天，存够了"+sum+"元");
    }
}
